package chen.yi.service.service.user;

import chen.yi.mapper.mapper.user.UserInfoMapper;
import chen.yi.mapper.po.UserInfoPO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 用户业务层实现类
 * @author huat
 **/
@Service
@Slf4j
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfoPO> implements UserInfoService {
    @Override
    public UserInfoPO getByUsername(String username) {
        return lambdaQuery().eq(UserInfoPO::getUsername, username).one();
    }
}
